package com.bdqn.t350.ch11.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bdqn.t350.ch11.bean.Right;
import com.bdqn.t350.ch11.bean.RoleRight;
import com.bdqn.t350.ch11.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface RoleRightMapper extends BaseMapper<RoleRight> {

    /**
     * 批量添加
     *
     * @param rightSet
     * @param roleId
     * @return
     */
    public int batchInsert(@Param("rightSet") Set<String> rightSet, @Param("roleId") Integer roleId);

    /**
     * 批量删除
     *
     * @param rightSet
     * @param roleId
     * @return
     */
    public int deleteByIds(@Param("rightSet") Set<String> rightSet, @Param("roleId") Integer roleId);

    public int deleteAll(@Param("roleId") Integer roleId);
}
